<template>
	<uni-popup ref="popup" type="center">
		<view class="main" @click="deletes()">
			删除会话
		</view>
	</uni-popup>
</template>

<script>
	import uniPopup from '@/components/uni-ui/uni-popup/uni-popup.vue';
	export default {
		components:{
			uniPopup
		},
		data(){
			return{
				page: 1,
				list:[],
				groupID: "",
				hasMore: true,
				conversationID: ""
			}
		},
		methods:{
			async open(conversationID){
				this.$refs.popup.open();
				this.conversationID = conversationID
				console.log(conversationID)
			},
			deletes(){
				this.TIM.deleteConversations(this.conversationID)
				this.$refs.popup.close(false)
				uni.showToast({
					title:"操作成功"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.main{
	width: 400rpx;
	height: 100rpx;
	line-height: 100rpx;
	text-align: center;
	color: #8e8e8e;
}
</style>